/*
 * @FileName: bsp_adc.h
 * @Author: GreyQiu qiushaogui@aikosolar.com
 * @Date: 2023-07-12 16:05:59
 * @LastEditors: GreyQiu qiushaogui@aikosolar.com
 * @LastEditTime: 2023-09-23 13:07:40
 * @Description: 
 * 
 * Copyright (c) 2023, All Rights Reserved. 
 */

#ifndef __BSP_ADC_H__
#define __BSP_ADC_H__

#include "driverlib.h"

///**
// * @description: 各个信号AD值地址
// */
//#define ADC_RESULT_ADDR_VIN      (&(ADC->JDAT1))
//#define ADC_RESULT_ADDR_IIN      (&(ADC->JDAT2))
//#define ADC_RESULT_ADDR_VOUT     (&(ADC->JDAT3))
//#define ADC_RESULT_ADDR_IOUT     (&(ADC->JDAT4))
//#define ADC_RESULT_ADDR_TEMP1      (&(g_adcTempBuffer[0]))
//#define ADC_RESULT_ADDR_TEMP2      (&(g_adcTempBuffer[1]))

#define ADC_READ_VIN()     ADC_readResult(ADCARESULT_BASE, ADC_SOC_NUMBER0)
void bsp_adc_init(void);

#endif /* __BSP_ADC_H__ */
